from django import forms


class Stock_Form(forms.Form):
    """
    药品入库
    """
    factory = forms.CharField(label='制药厂家',max_length=50)
    specification = forms.CharField(label='药品规格',max_length=50)
    name = forms.CharField(label='药品名称',max_length=50)
    num = forms.IntegerField(label='进货数量')
    # 小数
    money = forms.DecimalField(label='进货单价',decimal_places=2,max_digits=8)


class Shipment_Form(forms.Form):
    """
    出库
    """
    factory = forms.CharField(label='制药厂家',max_length=50)
    specification = forms.CharField(label='药品规格',max_length=50)
    name = forms.CharField(label='药品名称',max_length=50)
    num = forms.IntegerField(label='出货数量')
    # 小数
    money = forms.DecimalField(label='出售价格',decimal_places=2,max_digits=8)




